package dict

type AdProductType struct {
	Name  string
	Value string
}

var (
	AdProduct = AdProductType{
		Name:  "sp",
		Value: "SPONSORED_PRODUCTS",
	}
	AdBrand = AdProductType{
		Name:  "sb",
		Value: "SPONSORED_BRANDS",
	}
	AdDisplay = AdProductType{
		Name:  "sd",
		Value: "SPONSORED_DISPLAY",
	}
)

var AdProducts = make(map[string]AdProductType)

func init() {
	AdProducts[AdProduct.Name] = AdProduct
	AdProducts[AdBrand.Name] = AdBrand
	AdProducts[AdDisplay.Name] = AdDisplay
}

func GetAdProduct(id string) AdProductType {
	return AdProducts[id]
}
